﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010F5 RID: 4341
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SectionStatus : IMessage<SectionStatus>, IMessage, IEquatable<SectionStatus>, IDeepCloneable<SectionStatus>, IBufferMessage
	{
		// Token: 0x17003701 RID: 14081
		// (get) Token: 0x0600C23A RID: 49722 RVA: 0x0020DBCD File Offset: 0x0020BDCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SectionStatus> Parser
		{
			get
			{
				return SectionStatus._parser;
			}
		}

		// Token: 0x17003702 RID: 14082
		// (get) Token: 0x0600C23B RID: 49723 RVA: 0x0020DBD4 File Offset: 0x0020BDD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SectionStatusReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003703 RID: 14083
		// (get) Token: 0x0600C23C RID: 49724 RVA: 0x0020DBE6 File Offset: 0x0020BDE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SectionStatus.Descriptor;
			}
		}

		// Token: 0x0600C23D RID: 49725 RVA: 0x0020DBED File Offset: 0x0020BDED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SectionStatus()
		{
		}

		// Token: 0x0600C23E RID: 49726 RVA: 0x0020DBF5 File Offset: 0x0020BDF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SectionStatus(SectionStatus other) : this()
		{
			this.sectionId_ = other.sectionId_;
			this.sectionStatus_ = other.sectionStatus_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C23F RID: 49727 RVA: 0x0020DC26 File Offset: 0x0020BE26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SectionStatus Clone()
		{
			return new SectionStatus(this);
		}

		// Token: 0x17003704 RID: 14084
		// (get) Token: 0x0600C240 RID: 49728 RVA: 0x0020DC2E File Offset: 0x0020BE2E
		// (set) Token: 0x0600C241 RID: 49729 RVA: 0x0020DC36 File Offset: 0x0020BE36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SectionId
		{
			get
			{
				return this.sectionId_;
			}
			set
			{
				this.sectionId_ = value;
			}
		}

		// Token: 0x17003705 RID: 14085
		// (get) Token: 0x0600C242 RID: 49730 RVA: 0x0020DC3F File Offset: 0x0020BE3F
		// (set) Token: 0x0600C243 RID: 49731 RVA: 0x0020DC47 File Offset: 0x0020BE47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MessageSectionStatus SectionStatus_
		{
			get
			{
				return this.sectionStatus_;
			}
			set
			{
				this.sectionStatus_ = value;
			}
		}

		// Token: 0x0600C244 RID: 49732 RVA: 0x0020DC50 File Offset: 0x0020BE50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SectionStatus);
		}

		// Token: 0x0600C245 RID: 49733 RVA: 0x0020DC5E File Offset: 0x0020BE5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SectionStatus other)
		{
			return other != null && (other == this || (this.SectionId == other.SectionId && this.SectionStatus_ == other.SectionStatus_ && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C246 RID: 49734 RVA: 0x0020DC9C File Offset: 0x0020BE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SectionId != 0U)
			{
				num ^= this.SectionId.GetHashCode();
			}
			if (this.SectionStatus_ != MessageSectionStatus.MessageSectionNone)
			{
				num ^= this.SectionStatus_.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C247 RID: 49735 RVA: 0x0020DCFA File Offset: 0x0020BEFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C248 RID: 49736 RVA: 0x0020DD02 File Offset: 0x0020BF02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C249 RID: 49737 RVA: 0x0020DD0C File Offset: 0x0020BF0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SectionId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.SectionId);
			}
			if (this.SectionStatus_ != MessageSectionStatus.MessageSectionNone)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.SectionStatus_);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C24A RID: 49738 RVA: 0x0020DD64 File Offset: 0x0020BF64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SectionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SectionId);
			}
			if (this.SectionStatus_ != MessageSectionStatus.MessageSectionNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.SectionStatus_);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C24B RID: 49739 RVA: 0x0020DDBC File Offset: 0x0020BFBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SectionStatus other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SectionId != 0U)
			{
				this.SectionId = other.SectionId;
			}
			if (other.SectionStatus_ != MessageSectionStatus.MessageSectionNone)
			{
				this.SectionStatus_ = other.SectionStatus_;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C24C RID: 49740 RVA: 0x0020DE0C File Offset: 0x0020C00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C24D RID: 49741 RVA: 0x0020DE18 File Offset: 0x0020C018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SectionStatus_ = (MessageSectionStatus)input.ReadEnum();
					}
				}
				else
				{
					this.SectionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004E7B RID: 20091
		private static readonly MessageParser<SectionStatus> _parser = new MessageParser<SectionStatus>(() => new SectionStatus());

		// Token: 0x04004E7C RID: 20092
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E7D RID: 20093
		public const int SectionIdFieldNumber = 1;

		// Token: 0x04004E7E RID: 20094
		private uint sectionId_;

		// Token: 0x04004E7F RID: 20095
		public const int SectionStatus_FieldNumber = 10;

		// Token: 0x04004E80 RID: 20096
		private MessageSectionStatus sectionStatus_;
	}
}
